<?php

const MAX_COUNT = 10;
$total = rand(5,MAX_COUNT);
 $result["total"] =$total;
 $result["footer"] =array();
 $data = array();
 for($i = 0 ;$i<$total;$i++){
    $single["appId"] = "wxdc481b15cab2ed8a";
    $single["category"]="material";
    $single["created"]="2017-01-10 17:07:46";
    $single["createrId"]=1;
    $single["createrName"]="admin";
    $single["groupId"]=0;
    $single["groupName"]="";
    $single["fileName"]="沃特么真的是文件名称";
    $single["id"]="623a4fc5-f074-43dd-8bbf-7c782180f34e".$i;
    $single["modified"]="";
    $single["modifierId"]="";
    $single["modifierName"]="";
    $single["path"]="img/demo_avatar.jpg";
    $single["type"]="image";

    $data[]=$single;
 }

$result["rows"] = $data;

header('Content-type: application/json');
echo  json_encode($result);
